package cn.ywang.pattern.adapter;

/**
 * @author BeatificWang
 * @date 2018/10/5 16:30
 */
public class LoginService {

	public ResultMsg register(String username, String password) {
		User user = new User();
		user.setUsername(username);
		user.setPassword(password);
		return new ResultMsg("200", "注册成功", user);
	}

	public ResultMsg login(String username, String password) {
		User user = new User();
		user.setUsername(username);
		user.setPassword(password);
		return new ResultMsg("200", "登录成功", user);
	}
}
